package com.qfedu.tantu.controller;

import com.qfedu.tantu.entity.Reserve;
import com.qfedu.tantu.service.intf.ReserveService;

import com.qfedu.tantu.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/02/0:26
 */
@RestController
@Api("下单人操作")
@CrossOrigin
@RequestMapping("/api/reserve/")
public class ReserveController {
    @Resource
    private ReserveService service;

    @ApiOperation("下单人添加")
    @PostMapping("save.do")
    public R save(@RequestBody Reserve reserve){
        return service.save(reserve);
    }
    @ApiOperation("下单人查询")
    @GetMapping("select.do")
    public R select(Integer token){
        return service.select(token);
    }
    @ApiOperation("下单人删除")
    @PostMapping("del.do")
    public R del(Integer id){
        return service.del(id);
    }


}
